package oop5;

public class USBUDisk extends Storage implements USB {
	private String brand;
	private int cap;// 容量，单位为G

	public USBUDisk(String s, int cp) {
		brand = s;
		cap = cp;
	}

	@Override
	public void poweron() {
		System.out.println(cap + "G的" + brand + "的u盘接上了电脑");
	}

	@Override
	public void work() {
		System.out.println(cap + "G的" + brand + "的u盘开始工作了");
	}

	public void read() {
		System.out.println(brand + "读取数据。。。。");
	}

	public void write() {
		System.out.println(brand + "写入数据。。。。");
	}

	@Override
	public void poweroff() {
		System.out.println(cap + "G的" + brand + "的u盘从电脑上移除了");
	}

}
